<%--
  Created by IntelliJ IDEA.
  User: 刘琛
  Date: 2020/9/1
  Time: 1:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%pageContext.setAttribute("APP_PATH", request.getContextPath());%>
<html>
<!-- bootstrap & fontawesome -->
<link rel="stylesheet" href="${APP_PATH }/assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="${APP_PATH }/assets/font-awesome/4.5.0/css/font-awesome.min.css" />

<!-- page specific plugin styles -->

<!-- text fonts -->
<link rel="stylesheet" href="${APP_PATH }/assets/css/fonts.googleapis.com.css" />

<!-- ace styles -->
<link rel="stylesheet" href="${APP_PATH }/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

<!--[if lte IE 9]-->
<%--    <link rel="stylesheet" href="${APP_PATH }/assets/css/ace-part2.min.css" class="ace-main-stylesheet" />--%>
<!--[endif]-->
<link rel="stylesheet" href="${APP_PATH }/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="${APP_PATH }/assets/css/ace-rtl.min.css" />

<!--[if lte IE 9]-->
<%--    <link rel="stylesheet" href="${APP_PATH }/assets/css/ace-ie.min.css" />--%>
<!--[endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->
<script src="${APP_PATH }/assets/js/ace-extra.min.js"></script>

<head>
    <title>维修单详情</title>
    <div>
        <h3 align="center">${name.equipment_name}的维修单详细信息</h3>
        <br>
        <label class="align-left">设备名称：${name.equipment_name}</label>
        &nbsp;
        &nbsp
        &nbsp;
        <label>所属部门：${approver.department_name}</label>
        &nbsp;
        &nbsp
        &nbsp;
        &nbsp
        <label>打印员：${approver.name}</label>

        <jsp:useBean id="time" class="java.util.Date">
            <label class="pull-right">打印时间：<fmt:formatDate value="<%=time%>" type="both" pattern="yyyy-MM-dd HH:mm:ss"/></label>
        </jsp:useBean>
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th class="align-center">序号</th>
                <th class="align-center">维修单编号</th>
                <th class="align-center">维修单名称</th>
                <th class="align-center">维修价格</th>
                <th class="align-center">维修方</th>
                <th class="align-center">办理时间</th>
                <th class="align-center">问题描述</th>
                <th class="align-center">解决方案</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${orders}" var="task">
                <tr>
                    <td class="align-center">1</td>
                    <td class="align-center">${task.id}</td>
                    <td class="align-center">${task.order_name}</td>
                    <td class="align-center">${task.final_price}</td>
                    <td class="align-center">${task.unit_name}</td>
                    <td class="align-center">
                        <fmt:formatDate value="${task.createTime}" type="date"/>
                    </td>
                    <td class="align-center">${task.problem_word}</td>
                    <td class="align-center">${task.solution_word}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</head>
<body>

</body>
</html>
